package com.tongfusoft.shipping.action.admin;

import com.tongfusoft.web.core.action.JsonTreeBaseAction;

public class ShipVoyageTreeAction extends JsonTreeBaseAction{

	@Override
	public String getIdAttrName() {
		return "SHIPPING_ID";
	}

	@Override
	public String getNameAttrName() {
		return "SHIPPING_NAME";
	}

	@Override
	public boolean isParent(String id) {
		if(id==null){
			
			return true;
		}
		if(id.substring(0, 1).equals("B")){
			
			return true;
		}else{
			return false;
		}
	}

	@Override
	public String getRootName() {
		return "船舶-航次列表";
	}
	
}
